Exit Codes For Passive Checks

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
tubosunedward
Posts: 7
Joined: Fri Aug 02, 2013 5:15 pm

Exit Codes For Passive Checks

Post by tubosunedward »

Hi Guys,

I wrote a code on python with scapy and would like the result to exit with a 0,1 or 2. The problem is that the values are in Date:Hours:Mins:Second which I would like to convert to just one integer value. Can anyone suggest how to convert this to this one int value?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Exit Codes For Passive Checks

Post by sreinhardt »

How about using unix timestamps? Or are you specifically looking to keep it in a more readable form?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked